const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token,
  avatar: (state) => state.user.avatar,
  name: (state) => state.user.name,
  // 创建用户快捷访问user中的对象
  userInfo:(state)=>state.user.userInfo,
  // 创建用户快捷访问user中userInfo中的username
  username:(state)=>state.user.userInfo.username,
  // 创建用户头像快捷访问方式
  staffPhoto:(state)=>state.user.userInfo.staffPhoto
};
export default getters;
